package com.guotd.ticketSystemPlus.mapper;

import com.guotd.ticketSystemPlus.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {

     int addOrder(Order order);

     void p2(Order order);

     List<Order> selectOrders(String userId);

     int payOrder(String id);

     int cancelOrder(String id);

     List<Order> getOrders(String flightId);

     int delOrder(String id);
     
     int changeOrder(@Param("orderId") String orderId, 
                    @Param("newFlightId") String newFlightId, 
                    @Param("newCabinId") String newCabinId);
}
